﻿using System;
using System.Collections.Generic;
using System.ComponentModel;
using System.ComponentModel.DataAnnotations;
using System.Linq;
using System.Web;
using OT.Data;

namespace OT.Areas.Admin.Models
{
    public class AttemptDetails
    {
        public long AttemptDtlID { get; set; }
        public long AttemptID { get; set; }
        public int QuestionID { get; set; }
        public string QuestionName { get; set; }
        [Required, DisplayName("SerialNo")]
        public byte SerialNo { get; set; }
        [Required, DisplayName("Answer")]
        public byte Answer { get; set; }
        [Required, DisplayName("IsRight")]
        public bool IsRight { get; set; }
        [Required, DisplayName("Marks")]
        public double Marks { get; set; }
        public byte YourAnswer { get; set; }
        public string YourAns { get; set; }
        public byte CorrectAnswer { get; set; }
        public string CorreAns { get; set; }
        public ICollection<AttemptMst> AttemptMsts { get; set; }
        public ICollection<Question> Questions { get; set; }
    }
    public class TestResultAdmin
    {
        public long AttemptID { get; set; }
        public string SubjectName { get; set; }
        public string TestName { get; set; }
        public int AttemptedQuestions { get; set; }
        public int PositiveMark { get; set; }
        public int NegativeMark { get; set; }
        public int PassingScore { get; set; }
        public int TotalQuestion { get; set; }
        public int TotalMarks { get; set; }
        public int UnAttemptedQuestions { get; set; }
        public int CorrectAnswers { get; set; }
        public int WrongAnswers { get; set; }
        public double Percantage { get; set; }
        public double TotalScore { get; set; }
        public string Result { get; set; }
    }

    public class BarData
    {
        public string fillColor { get; set; }
        public string strokeColor { get; set; }
        public ICollection<dynamic> data { get; set; }
    }
}